package com.net.shop.car.manager.api.volley.request.jifen;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;

public class JifenToOilCard extends Request {
	
	private String memberId;
	private String cardNumber;
	private String holderName;
	private long vb;
	
	public JifenToOilCard(String memberId,String cardNumber,String holderName,long vb) {
		super(Constants.JIFEN_TO_OILCARD);
		this.memberId = memberId;
		this.cardNumber = cardNumber;
		this.holderName = holderName;
		this.vb = vb;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("memberid", memberId);
			jsonObject.put("card_number", cardNumber);
			jsonObject.put("holder_name", holderName);
			jsonObject.put("vb", vb);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}


}
